// src/renderer/utils/webSocket.ts
import { onMounted, onBeforeUnmount } from "vue";
import { useWebSocket } from "@vueuse/core";
const { status, data, send, open, close } = useWebSocket(
  "ws://127.0.0.1:8092/websocket/1",
  {
    autoReconnect: true,
    heartbeat: {
      message: JSON.stringify({ serviceType: "ping" }),
      interval: 1000,
      pongTimeout: 1000,
    },
  }
);
export default useWebSocket;